// JavaScript Document
$(function(){
	//表格伸缩
	$(".docTitle").on("click",function(){
		$(this).nextAll().toggle();
		$(this).find("i").toggleClass("fa fa-caret-down");
		$(this).find("i").toggleClass("fa fa-caret-right");
	});
});
//代码着色
function highLight(){
	$("pre[name=code]").each(function(i,e){
		var ht = $(e).html();
		ht = ht.replace(/\</ig,"&lt;");
		ht = ht.replace(/\>/ig,"&gt;");
		$(e).html(ht);
	});
	SyntaxHighlighter.all();
}